<!DOCTYPE html>
<html class="Content">
<head>
    <title>xUnit.js: Supported Host Engines</title>
    <link type="text/css" rel="Stylesheet" href="../../Style/documentation.css" />
</head>
<body>
    <h1>Supported Host Engines</h1>
    <p>
        The xUnit.js console runner comes with built-in support for the following popular javascript engines:
    </p>
    <ul>
        <li><a href="https://code.google.com/p/v8/">v8</a> (via d8[.exe] development console, used in Chrome)</li>
        <li><a href="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey">SpiderMonkey</a> (via js[.exe] console, used in Firefox)</li>
        <li><a href="https://developer.mozilla.org/en/docs/Rhino">Rhino</a> (via js.jar, used in java)</li>
        <li>JScript (via cscript.exe, used in IE5-IE8)</li>
        <li>Chakra (via cscript.exe, used in IE9+)</li>
        <li><a href="http://nodejs.org/">Node.js</a> (via node[.exe] console, technically a v8 engine)</li>
        <li><a href="http://phantomjs.org/">Phantom.js</a> (via phantomjs[.exe] console)</li>
    </ul>
    <p>
        With the exception of cscript.exe, all of these engines are open source, and can be built or acquired for Windows, Linux, and Mac operating systems.
    </p>
    <h3>Notes:</h3>
    <ul>
        <li>
            The <a href="http://en.wikipedia.org/wiki/Windows_Script_Host">Windows Script Host</a> (cscript.exe) is included by default with Windows operating systems (since Windows '98), and will run the version of the script engine based on the Windows Updates applied.
            By default, cscript.exe will run the <a href="http://en.wikipedia.org/wiki/JScript">JScript</a> engine, but can be switched to the 
            <a href="http://en.wikipedia.org/wiki/Chakra_(JScript_engine)">Chakra</a> engine with a registry change or command flag. See the 
            <a href="../FAQ/the-wsh-engine.html">WSH Engine</a> FAQ for more information.
        </li>
        <li>
            Running the D8 engine on windows requires some additions to the source code, to allow system commands to be executed. See the 
            <a href="../FAQ/d8-on-windows.html">D8 on Windows</a> FAQ for more information.
        </li>
    </ul>
    <h3>Download:</h3>
    <p>Known working versions of some of these hosts can be downloaded here:</p>
    <ul>
        <li>
            <h4>D8</h4>
            <a href="../../Engines/D8/Windows/d8.exe">Windows</a>
            <a href="../../Engines/D8/Linux/d8">Linux</a>
            <a href="../../Engines/D8/Mac/d8">Mac</a>
        </li>
        <li>
            <h4>SpiderMonkey</h4>
            <a href="../../Engines/SpiderMonkey/Windows/js.zip">Windows</a>
            <a href="../../Engines/SpiderMonkey/Linux/js">Linux</a>
            <a href="../../Engines/SpiderMonkey/Mac/js.zip">Mac</a>
        </li>
        <li>
            <h4>Rhino</h4>
            <a href="../../Engines/Rhino/js.jar">All Operating Systems</a>
        </li>
    </ul>
</body>
</html>